package cn.xie.blog.model.common.param.login;

/**
 * @author: xiaoxie
 * create: 2025-04-24 21:33
 * @BelongsProject: blog-parent
 * @BelongsPackage: cn.xie.blog.model.common.param.login
 * description:
 */
public class AuthContextHolder {
    private static ThreadLocal<Long> userId = new ThreadLocal<Long>();

    public static void setUserId(Long _userId) {
        userId.set(_userId);
    }

    public static Long getUserId() {
        return userId.get();
    }

    public static void removeUserId() {
        userId.remove();
    }
}
